﻿using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PdfConvert
{
    public static class CheckInstall
    {
        public static bool IsDotNetRuntimeInstalled()
        {
            using (var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\dotnet\Setup\InstalledVersions\x64\sharedhost"))
            {
                return key?.GetValue("Version") != null;
            }
        }      
    }
}
